refactor(gnerative-ai): migrate batch 2 generative-ai samples to @google/genai#4331
Conversation
There was a problem hiding this comment.
Code Review
This pull request migrates several Gemini Node.js snippets from the legacy @google-cloud/vertexai SDK to the new @google/genai SDK, updating the default model to gemini-2.5-flash and enabling the corresponding test suites. Feedback was provided on gemini-translate.test.js to add a fallback value for process.env.LOCATION to prevent test failures when the environment variable is not set.
|
Here is the summary of changes. You are about to add 1 region tag.
You are about to delete 1 region tag.
This comment is generated by snippet-bot.
|
amcolin
left a comment
There was a problem hiding this comment.
Changes look solid to me!
|
LGTM |
|
I'm concerned that this is duplicating the samples that exist in https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/genai are there any samples in generative-ai that don't already exist in genai? it could be that migration of region tags should happen to existing samples rather than updating. |
|
@iennae You're right! I'm currently creating a list of the duplicated samples so I can just migrate the region tags. Thanks, Jenn! |
Description
Fixes Internal: b/519970318
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
npm test(see Testing)npm run lint(see Style)GoogleCloudPlatform/nodejs-docs-samples. Not a fork.